Serial transmission having a low level EMI

ABSTRACT

A method for transmitting data in series includes producing a scrambled signal by applying a scrambling using a pseudo-random sequence to an incoming serial signal conveying the data and producing an outgoing serial signal. The scrambled signal is monitored to detect occurrences of one or more data patterns. In response to the detection of one or more occurrences, one or more actions are taken to protect data in the output signal.

BACKGROUND

Technical Field

The disclosure relates to serial communication interfaces, includingconditioning techniques implemented on the signal to be transmitted atthe physical layer.

Description of the Related Art

The transmission of a serial signal is subject to a number ofconstraints imposed by the various serial interface standards. Amongthese constraints, it is sought to ensure that the clock can berecovered from the signal by the receiver circuit, and that the signalhas a DC component that varies little around zero (or around 50% of thesignal excursion). In more recent interfaces, where rates can exceed onegigabit/s, the standards also require that the signal produces lowelectromagnetic interference. Electromagnetic compliance of the signalis acquired, for example, when the spectrum of the transmitted signalhas no peak beyond the bounds of a template specified by the standard.

FIG. 1A illustrates conditioning operations performed at the physicallayer for the USB 2.0 standard. These operations are intended to ensureclock recovery, however without guaranteeing the consistency of the DCcomponent.

The raw serial signal D is subjected at 10 to a bit-stuffing operation.In general, bit-stuffing comprises inserting bits in the signal tocreate transitions where the raw signal has too few transitions toguarantee clock recovery. According to the USB 2.0 standard, thisoperation comprises inserting in the signal a 0-bit after any sequenceof six 1-bits. The bits thus inserted are dummies in that they have nomeaning—they are removed from the signal by the receiving circuit.

After the stuffing operation, the signal is subjected at 12 to an NRZIcoding (“Non-Return to Zero Inverted”). This operation comprisesencoding each 0-bit by a transition, and each 1-bit by a lack oftransition.

FIG. 1B is a timing diagram illustrating an example of a raw serialsignal D and the corresponding signals after the operations 10 and 12(B-STUFF and NRZI).

Signal D conveys a synchronization word (seven 0-bits followed by one1-bit), followed by an 8-bit sequence of 1-bits, then the sequence 0, 1,0.

The stuffing operation inserts a 0-bit after the sixth 1-bit, identifiedby an arrow. This will ensure the presence of at least one transitionfor 6 consecutive 1-bits, but does not guarantee a transition in thesequence of 0-bits.

After the NRZI operation, the output signal Tx has a transition beforeeach 0-bit, and has no transition before each 1-bit. This ensures a highnumber of transitions for the bit sequences of zeros.

The combination of the two operations ensures sufficient transitions inthe output signal Tx for any series of consecutive bits of the samestate (0 or 1) in the raw signal D.

These operations also tend to improve the consistency of the DCcomponent of the Tx output signal, but do not guarantee a small marginof variation of the DC component.

More recent serial interface standards, aiming rates exceeding onegigabit/s, impose constraints that cannot be fulfilled by the techniqueof FIG. 1A, in particular relating to electromagnetic interference.

FIG. 2 illustrates conditioning operations performed at the physicallayer for more recent high-speed serial transmission standards, such asHDMI, SATA, USB 3, PCI-Express (before version 3), Ethernet, FireWire,etc.

Raw serial signal D is subjected at 14 to a scrambling operation. Thisoperation comprises mixing the incoming signal with a pseudo-random bitsequence, through a bitwise exclusive-OR operation. The pseudo-randomsequence is generated by a linear feedback shift register (LFSR),hardwired according to a specific generator polynomial,G(x)=x¹⁶+x⁵+x⁴+x³+1 in the USB 3 standard. The original signal can berecovered in the receiving circuit by subjecting the scrambled signal tothe same pseudo-random sequence.

Such a scrambling operation produces statistically a signal havingrandom characteristics, thus having a flat spectrum and generatinglittle EMI. But the scrambling does not guarantee that the scrambledsignal has sufficient transitions for recovering the clock in all cases,and does not guarantee that the scrambled signal has a DC component oflow variation in all cases.

To satisfy these two last constraints, the scrambled signal is subjectedat 16 to a line coding operation, the 8b/10b coding for the standardslisted above. Such coding replaces every byte of the scrambled signalwith a 10-bit word sought in a lookup table. The 10-bit words areconstructed so that each pair of successive 10-bit words in the outputsignal has a transition after at most 5 bits at the same state.Furthermore, each byte of the scrambled signal has two 10-bit candidatesin the table, with different numbers of 1-bits. The one or the othercandidate is selected based on the number of 1-bits in the previousword, so as to tend to balance the number of 1-bits and the number of0-bits over a small number of consecutive words in the outgoing signal.Such a coding thus ensures sufficient transitions and, especially, a DCcomponent having a small variation.

Signal conditioning techniques of the type of FIG. 2 providesatisfactory results, but the line coding consumes a portion of theavailable bandwidth on the physical link (8b/10b coding requires 25%more data) and requires storing a lookup table and a relatively complexprocessing.

BRIEF SUMMARY

It is desired to have a serial signal conditioning technique thatconsumes minimal bandwidth on the physical link, while producing lowelectromagnetic interference and ensuring a sufficient number oftransitions for clock recovery.

In an embodiment, a method for transmitting data in series comprisesproducing a scrambled signal by applying a scrambling using apseudo-random sequence to an incoming serial signal conveying the data;producing an outgoing serial signal from the scrambled signal; and aftereach sequence of N consecutive bits at the same state in the scrambledsignal, inserting a dummy bit of reverse state in the outgoing signal.

The method may comprise, to produce the output signal, the steps ofcounting on the fly consecutive bits at the same state in the scrambledsignal; when the count reaches N, suspending the transmission of thescrambled signal, transmitting the dummy bit of reverse state, resettingthe count of consecutive bits, and resuming the transmission of thescrambled signal.

The method may comprise the steps of producing a derivative signal ofthe incoming signal by applying to the input signal a delaycorresponding to the delay introduced by the scrambling; after K+1consecutive occurrences of a same pattern of several bits in thescrambled signal, producing the output signal from the derivative signalinstead of the scrambled signal; and producing again the outgoing signalfrom the scrambled signal (SD) after the occurrence of a differentpattern in the scrambled signal.

The derivative signal may be produced by applying to the input signal asecond scrambling different from the first.

The method may comprise, for generating the output signal, the step ofinserting into the output signal a tag recognizable by a receivingdevice, at each switching between the scrambled signal and thederivative signal.

The tag may be an invalid bit sequence having more than N consecutivebits at the same state.

The method may comprise the steps of resetting a pattern repeat counter;storing a word from the scrambled signal as a reference word; andcomparing a current word from the scrambled signal to the referenceword. If the words match, the repeat counter is incremented. If they donot match, the repeat counter is reset and the current word is stored asa reference word. When the content of the repeat counter reaches K, theoutput signal is produced from the derivative signal instead of thescrambled signal. The outgoing signal is produced again from thescrambled signal after resetting the repeat counter.

In an embodiment, a method for transmitting data in series may beprovided, comprising the steps of producing a scrambled signal byapplying a scrambling using a pseudo-random sequence to an incomingserial signal conveying the data; producing an outgoing serial signalfrom the scrambled signal; producing a derivative signal of the incomingsignal by applying to the input signal a delay corresponding to thedelay introduced by the scrambling; after K+1 consecutive occurrences ofa same pattern of several bits in the scrambled signal, producing theoutput signal from the derivative signal instead of the scrambledsignal; and producing again the outgoing signal from the scrambledsignal after the occurrence of a different pattern in the scrambledsignal.

The derived signal may be produced by applying to the input signal asecond scrambling different from the first.

In an embodiment, a device for serial data transmission is provided,comprising a scrambler configured to mix a pseudo-random sequence with aserial input signal conveying the data; and an adapting circuitproducing an outgoing serial signal from the output of the scrambler.The adapting circuit is configured for, after each sequence of Nconsecutive bits at a same state, inserting a dummy bit of reverse statein the output signal.

The device may comprise a repetition detecting circuit connected to thescrambler and configured to enable a detection signal after anobservation of K+1 consecutive occurrences of a same pattern of severalbits at the output of the scrambler; a processing circuit receiving theincoming signal and introducing a delay corresponding to the scramblerinitialization cycle; and a switching circuit controlled by thedetection circuit, connected to provide to the adapting circuit: theoutput of the scrambler when the detection signal is disabled, and theoutput of the processing circuit when the detection signal is enabled.

The processing circuit may be a second scrambler designed to operate adifferent scrambling than the first scrambler.

In an embodiment, a device for serial data transmission may be provided,comprising a scrambler configured to mix a pseudo-random sequence with aserial input signal conveying the data; an adapting circuit producing anoutgoing serial signal from the output of the scrambler; a repetitiondetecting circuit connected to the scrambler and configured to enable adetection signal after an observation of K+1 consecutive occurrences ofa same pattern of several bits at the output of the scrambler; aprocessing circuit receiving the incoming signal and introducing a delaycorresponding to the scrambler initialization cycle; and a switchingcircuit controlled by the detection circuit, connected to provide to theadapting circuit: the output of the scrambler when the detection signalis disabled, and the output of the processing circuit when the detectionsignal is enabled.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The following description of particular embodiments is provided forexemplary purposes only and represented in the appended drawings, inwhich:

FIGS. 1A and 1B, previously described, illustrate operations implementedin a conventional serial signal conditioning process and an example ofsignals produced in the process;

FIG. 2, previously described, illustrates operations implemented inanother conventional serial signal conditioning process;

FIG. 3 shows operations implemented in a serial signal conditioningprocess that facilitates optimizing available bandwidth on a physicallink according to an embodiment;

FIG. 4 is a block-diagram of an embodiment of a conditioning circuitcancelling repetitive patterns in the transmitted signal; and

FIG. 5 is an exemplary timing diagram illustrating the operation of thecircuit of FIG. 4.

DETAILED DESCRIPTION

In recent serial interface standards, it has been recommended to useline coding, including the 8b/10b coding, in particular for consistencyof the DC component of the transmitted signal. This is probably due tothe fact that, at the time these standards were established, it wasdifficult to design simple analog circuits capable of properly handlinga serial signal having a large variation of its DC component.

Meanwhile, receiver analog circuits have improved, and the constraintthat the transmitted signal should have a substantially constant DCcomponent may be substantially relaxed. Analog circuits can now operateproperly with a DC level varying, for example, between 20% and 80% ofthe signal excursion.

FIG. 3 illustrates a process flow taking into account theseconsiderations, to facilitate optimizing the bandwidth use of thephysical link while being simple to implement, and to facilitateensuring sufficient transitions in the output signal for clock recovery.

The raw serial signal D is subjected to a scrambling operation 14, whichmay be similar to that of FIG. 2. The scrambled signal SD is submittedto a bit-stuffing operation at 18. The stuffing operation 18 isdifferent from that performed in the flow of FIG. 1A (USB 2) in that itoperates on sequences of consecutive 1-bits, but also on sequences ofconsecutive 0-bits. Thus, a dummy 0-bit is inserted in the output signalTx after each series of N consecutive 1-bits in the scrambled signal SD,and a dummy 1-bit is inserted after each series of N consecutive 0-bits.

The scrambling operation 14 facilitates reducing electromagneticinterference, and the stuffing operation 18 facilitates the presence ofat least one transition in the signal every N+1 consecutive bits. Forexample, N=5.

The stuffing function 18 is particularly simple to implement. Theconsecutive bits at the same state may be counted on the fly in thescrambled signal SD. As soon as the count reaches N, the transmission ofthe scrambled signal is suspended during one cycle for transmitting thedummy bit of reverse state. The consecutive bit count is then reset, andtransmission of the scrambled signal is resumed.

The bandwidth consumed by the stuffing operation depends on the numberof dummy bits inserted in the output signal Tx per unit time. Thisnumber depends on the nature of the scrambled signal SD. The purpose ofscrambling being to confer random characteristics to signal SD, thissignal statistically has many transitions, reducing the probability forthe need of stuffing bits.

Simulations conducted by the inventors using random sequences for theraw signal D indicate that the stuffing operation uses 16% of additionaldata for N=3, 3.4% for N=5, and 1.7% for N=6.

In the case of FIG. 1A, where the stuffing operation is performeddirectly on the raw signal D, a lower efficiency is obtained, becausethe raw signal D may in many circumstances be regular in nature, forexample during the transmission of pixels of a uniform area of an image,requiring the insertion of a dummy bit every N transmitted bits.

The simulations also show that the DC level of the output signal varieswithin the limits of 20% and 80% of the signal swing, which is anacceptable variation range in current analog receiver circuits.

In exceptional circumstances, the raw serial signal D may be such thatthe scrambled signal exhibits repetitive patterns. The number ofrepetitions may be such that the spectrum of the scrambled signaltemporarily exhibits a peak exceeding a desired limit. The stuffingoperation does not improve the situation, while a line coding of thetype 8b/10b in the process flow of FIG. 2, could improve it. Indeed, the8b/10b coding may substitute a same sequence by two different codes,depending on the balance to be achieved between 1-bits and 0-bits.However, the 8b/10b coding does not guarantee the total absence ofrepetitive patterns.

FIG. 4 is a block diagram of an embodiment of a conditioning circuit forremoving repeating patterns in the output signal Tx. The raw serialsignal D is provided simultaneously to a scrambling circuit 14 and adelay circuit 20. The circuit 20 introduces a delay equal to the numberof initialization cycles required by the LFSR of the scrambling circuit14. Thus, the derivative signal DD produced by circuit 20 corresponds tothe signal D put in phase with its scrambled version SD. A multiplexerMX is configured to send either one of the signals SD and DD to theinput of a circuit 18 implementing the bit stuffing operation. Thechoice of the signal SD or DD is determined by a signal SW produced bythe circuit 18.

In an embodiment, the inactive value of signal SW selects the scrambledsignal SD, in which case the circuit is configured to operate accordingto FIG. 3. The active value of signal SW selects the delayed signal DD,in which case the circuit 18 operates on the raw serial signal put inphase with the scrambled signal.

A repetition detecting circuit 22 is configured to observe the scrambledsignal SD and enable a signal DET for the circuit 18 when the scrambledsignal contains a pattern repeated at least K times. The circuit 18produces the signal SW based on the signal DET. According to a firstalternative, the signal SW may be identical to signal DET. According toan alternative, the signal SW is enabled simultaneously with the signalDET, but disabled later than the signal DET, so that the duration of thetransmission phase of the derivative signal DD is greater than athreshold.

The fact that the original signal D mixed with a pseudo-random sequenceproduces a signal having regular characteristics means that the originalsignal is to a certain extent correlated to the pseudo-random sequence,and thus has characteristics similar to those of the pseudo-randomsequence. The fact of then transmitting the original signal instead ofthe scrambled signal is a better choice to reduce the electromagneticinterference.

Alternatively, a different scrambling than the one applied in 14 couldbe applied in 20.

The circuit 18 may be designed to insert in the outgoing signal Tx a tagfor each transition of the switching signal SW. This tag is recognizableby the receiving circuit (not shown) to apply to the received signal anadequate treatment (scrambling or not after removing the dummy bitsinserted by the stuffing operation). This tag may be a sequence thatshould not appear in the signal Tx in normal operation, an invalidsequence, such a sequence comprising more than N consecutive bits at thesame state (1 or 0).

A repetition may be sought by the circuit 22 over consecutive words ofsame size in the signal SD. At each arrival of a word, the detectioncircuit 22 stores it as a reference word, for example in a dedicatedregister. Each new word is compared to the stored reference word. If thewords match, a repetition counter is incremented. If the words don'tmatch, the new word replaces the reference word and the repetition countis reset. The signal DET is enabled as soon as the repetition countreaches a threshold K, and it remains enabled as long as the repetitioncounter is not reset.

The size of the reference word may be chosen according to the maximumsize of the repeating patterns to be detected, therefore the minimumfrequency component to control of the signal spectrum. If the word isone byte, for example, repetitions of patterns of 8, 4, 2 and 1 bits maybe detected. In contrast, two occurrences of a sub-pattern of 4 bits,four occurrences of a sub-pattern of 2 bits, or eight occurrences of asub-pattern of 1 bit will not be counted as repetitions with thisembodiment—each of these sub-patterns should be repeated at least four,eight and sixteen times, respectively. Repetitions of patterns largerthan 8 bits will not be detected.

According to a more elaborate embodiment, multiple reference words ofdifferent sizes may be used, for example 8, 7, 6, 5, 4 and 3 bits, witha single repetition counter. The operations described above are carriedout for each reference word. Then, when a pattern of any size between 3and 8 bits is repeated K times, the detection circuit enables signalDET.

Alternatively, a counter and a threshold may be dedicated to eachreference pattern. Then, the first counter that reaches its thresholdenables the signal DET.

FIG. 5 is an exemplary timing diagram for understanding the operation ofthe circuit of FIG. 4, in the context of the use of a single referencepattern. It shows an example of evolution of signals SD, DET, SW and Tx,and of the output signal of the multiplexer MX. It also shows theevolution of the repetition counter CNT of detection circuit 22.

Initially, the signals DET and SW are disabled and the counter CNT is 0.The multiplexer MX transmits the scrambled signal SD to the stuffingcircuit 18.

At a time t0, the signal SD has transmitted a first repeated patternREP. The content of counter CNT is incremented to 1. Then, the patternis repeated three more times. The counter is incremented at the end ofeach pattern, and reaches the count of 4 after the fourth repetition.

The threshold K is here set to 2 repetitions, corresponding to K+1=3consecutive occurrences of the same pattern. Thus, once the counterreaches the count of 2, the signal DET is enabled. The signal SW is alsoenabled, so that the multiplexer MX transmits the derivative signal DDto the stuffing circuit 18. The circuit 18 inserts a tag e in the outputsignal Tx before processing and transmitting the signal DD. As mentionedabove, the tag e is used to signal to the receiving circuit thatprocessing mode should be switched (here by switching from scrambling tono scrambling). This tag may be an invalid sequence, containing, forexample, more than N consecutive bits at 1 or 0.

After the counter reaches 4, no repetition is detected. The signal DETis disabled, and the counter is reset. The signal SW remains enabledpreferably until the number of bits transmitted in the signal DD reachesa threshold. This threshold may be chosen large compared to the numberof bits of tags e, for example ten times larger. This ensures that theinsertion of tags e has a negligible impact on the bandwidth use. Whenthe signal SW is disabled, the multiplexer MX transmits again the signalSD to the circuit 18. After processing the sequence of signal DD, thecircuit 18 inserts a new tag e in the signal Tx, indicating to thereceiving circuit to switch back to scrambling mode.

The various embodiments described above can be combined to providefurther embodiments. Aspects of the embodiments can be modified, ifnecessary to employ concepts of the various patents, applications andpublications to provide yet further embodiments.

These and other changes can be made to the embodiments in light of theabove-detailed description. In general, in the following claims, theterms used should not be construed to limit the claims to the specificembodiments disclosed in the specification and the claims, but should beconstrued to include all possible embodiments along with the full scopeof equivalents to which such claims are entitled. Accordingly, theclaims are not limited by the disclosure.

The invention claimed is:
 1. A method, comprising: generating an outputsignal based on a serial data signal, the generating includingscrambling, using a pseudo-random sequence, the serial data signal,producing a scrambled signal; detecting occurrences of a data pattern inthe scrambled signal; and responding to the detection of one or moreoccurrences of the data pattern in the scrambled signal by taking one ormore actions to condition data encoded in the output signal.
 2. Themethod of claim 1, comprising: initiating transmission of the scrambledsignal as the output signal; counting consecutive bits at a same statein the output signal; and when the count of consecutive bits reaches athreshold number, suspending transmission of the scrambled signal as theoutput signal; transmitting a dummy bit of a reverse state; resettingthe count of consecutive bits; and resuming transmission of thescrambled signal as the output signal.
 3. The method of claim 1,comprising: generating a derivative signal based on the serial datasignal, the derivative signal having a delay corresponding to a delayintroduced by the scrambling of the serial data signal; generating theoutput signal based on the scrambled signal; after a threshold numberK+1 of consecutive occurrences of a same pattern of several bits in thescrambled signal, generating the output signal based on the derivativesignal instead of the scrambled signal; and after an occurrence of adifferent pattern in the scrambled signal, resuming generating theoutput signal based on the scrambled signal.
 4. The method of claim 3wherein generating the derivative signal comprises scrambling the serialdata signal using a different pseudo-random sequence.
 5. The methodaccording to claim 3, comprising: inserting into the output signal a tagrecognizable by a receiving device, at each switching between thescrambled signal and the derivative signal.
 6. The method of claim 5wherein the tag is an invalid bit sequence having a length of more thana threshold number of consecutive bits.
 7. The method of claim 3,comprising: storing a word from the scrambled signal as a referenceword; comparing a current word from the scrambled signal to thereference word; when the reference and current words match, incrementinga pattern-repeat counter; when the stored and current words do notmatch, resetting the pattern-repeat counter and storing the current wordas the reference word; when the content of the repeat counter is equalto or greater than K, generating the output signal based on thederivative signal instead of the scrambled signal; and when thepattern-reset counter is reset, resuming generation of the output signalbased on the scrambled signal.
 8. The method of claim 1, comprising:generating an alternative serial data signal based on the serial datasignal, the alternative serial data signal having a delay correspondingto a delay introduced by the scrambling of the serial data signal;monitoring a number of consecutive occurrences of a data pattern ofseveral bits in the scrambled serial data signal; selecting one of thescrambled serial data signal and the alternative serial data signalbased on the monitoring; and generating the output signal using theselected one of the scrambled serial data signal and the alternativeserial data signal.
 9. The method of claim 8 wherein the monitoringcomprises comparing the number of consecutive occurrences of the datapattern to a threshold number.
 10. The method of claim 9, comprising:tracking the number of consecutive occurrences using a pattern-repeatcounter; when the number of consecutive occurrences is less than orequal to the threshold number, selecting the scrambled serial datasignal to generate the output signal; when the number of consecutiveoccurrences is greater than the threshold number, selecting thealternative serial data signal to generate the output signal; and when adifferent data pattern is detected in the scrambled serial data signal,resetting the pattern-repeat counter.
 11. The method of claim 8 whereingenerating the alternative serial data signal comprises scrambling theinput serial data signal using a different pseudo-random sequence. 12.The method of claim 8, comprising: storing a previous word of thescrambled serial data signal as a reference word; comparing a currentword of the scrambled serial data signal to the reference word; when thereference word and the current word match, incrementing a pattern-repeatcounter; when the reference word and the current word do not match,resetting the pattern-repeat counter and storing the current word as thereference word; when a value of the pattern-repeat counter exceeds athreshold, producing the output signal using the alternative serial datasignal; and when the value of the pattern-repeat counter does not exceedthe threshold, producing the outgoing signal from the scrambled serialdata signal.
 13. A device, comprising: an input, which, in operation,receives a serial data signal; signal conditioning circuitry, which, inoperation: generates an output signal based on the serial data signal,the generating including scrambling, using a pseudo-random sequence, theserial data signal, producing a scrambled signal; detects occurrences ofone or more data patterns in the scrambled signal; and responds to adetection of one or more occurrences by taking one or more actions tocondition the output signal.
 14. The device of claim 13 wherein thesignal conditioning circuitry, in operation: initiates transmission ofthe scrambled signal as the output signal; counts consecutive bits at asame state in the output signal; and when the count of consecutive bitsreaches a threshold number, suspends transmission of the scrambledsignal as the output signal; transmits a dummy bit of a reverse state;resets the count of consecutive bits; and resumes transmission of thescrambled signal as the output signal.
 15. The device of claim 13wherein the signal conditioning circuitry, in operation: generates analternative serial data signal based on the serial data signal, thealternative serial data signal having a delay corresponding to a delayintroduced by the scrambling of the serial data signal; monitors anumber of consecutive occurrences of a data pattern of several bits inthe scrambled serial data signal; selecting one of the scrambled serialdata signal and the alternative serial data signal based on themonitoring; and generating the output signal using the selected one ofthe scrambled serial data signal and the alternative serial data signal.16. The device of claim 15 wherein the signal conditioning circuitry, inoperation: inserts into the output signal a tag recognizable by areceiving device, at each switching between generation of the outputsignal based on the scrambled signal and generation of the output signalbased on the derivative signal.
 17. The device of claim 15 wherein themonitoring comprises comparing the number of consecutive occurrences ofthe data pattern to a threshold number.
 18. The device of claim 15wherein generating the alternative serial data signal comprisesscrambling the input serial data signal using a different pseudo-randomsequence.
 19. The device of claim 15 wherein the signal conditioningcircuitry, in operation: stores a previous word of the scrambled serialdata signal as a reference word; compares a current word of thescrambled serial data signal to the reference word; when the referenceword and the current word match, increments a pattern-repeat counter;when the reference word and the current word do not match, resets thepattern-repeat counter and stores the current word as the referenceword; when a value of the pattern-repeat counter exceeds a threshold,produces the output signal using the alternative serial data signal; andwhen the value of the pattern-repeat counter does not exceed thethreshold, produces the outgoing signal from the scrambled serial datasignal.
 20. The device of claim 15 wherein the signal conditioningcircuitry comprises: first scrambling circuitry, which, in operation,scrambles the serial data signal; second scrambling circuitry, which, inoperation, scrambles the serial data signal; and a multiplexer, which,in operation, couples an output of the signal conditioning circuitry toa selected one of the first scrambling circuitry and the secondscrambling circuitry.
 21. A system comprising: one or more signalprocessing devices; and a serial data interface coupled to the one ormore signal processing devices, wherein the serial data interface, inoperation: generates an output signal based on a serial data signal, thegenerating including scrambling, using a pseudo-random sequence, theserial data signal, producing a scrambled signal; detects occurrences ofone or more data patterns in the scrambled signal; and responds to adetection of one or more occurrences by taking one or more actions tocondition the output signal.
 22. The system of claim 21 wherein: thedetecting comprises counting consecutive bits at a same state in theoutput signal and determining when the count of consecutive bits reachesa threshold number; and the responding comprises: inserting a dummy bitof a reverse state in the output signal; and resetting the count ofconsecutive bits.
 23. The system of claim 21 wherein the serial datainterface, in operation: generates an alternative serial data signalbased on the serial data signal, the alternative serial data signalhaving a delay corresponding to a delay introduced by the scrambling ofthe serial data signal; monitors a number of consecutive occurrences ofa data pattern of several bits in the scrambled serial data signal;selecting one of the scrambled serial data signal and the alternativeserial data signal based on the monitoring; and generating the outputsignal using the selected one of the scrambled serial data signal andthe alternative serial data signal.
 24. The system of claim 23 whereingenerating the alternative serial data signal comprises scrambling theinput serial data signal using a different pseudo-random sequence.